package cn.com.shopec.erp.financing.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * @ClassName TblConsignmentSettlement
 * @Description 代销实体
 * @author gujianfeng
 * @date 2013-5-22 上午10:55:27
 */
@Entity
@Table(name = "TBL_CONSIGNMENT_SETTLEMENT")
public class TblConsignmentSettlement 
{		
		
     /**主键ID **/
     private String settlementId;
     public TblConsignmentSettlement(String settlementId, String checkName, int checkState, String checkTime, String createTime, String endTime,
     int deleteFlag, String endDate,  String pointPercentage, String settlementName, int settlementState,
     String settlementTime, double settlementTotal,  String startDate, String statementNo, String supplierName, String supplierNo, String cancelState)
     {
          super();
          this.settlementId = settlementId;
          this.checkName = checkName;
          this.checkState = checkState;
          this.checkTime = checkTime;
          this.createTime = createTime;
          this.endTime = endTime;
          this.deleteFlag = deleteFlag;
          this.endDate = endDate;
         // this.list = list;
          this.pointPercentage = pointPercentage;
          this.settlementName = settlementName;
          this.settlementState = settlementState;
          this.settlementTime = settlementTime;
          this.settlementTotal = settlementTotal;
          this.startDate = startDate;
          this.statementNo = statementNo;
          this.supplierName = supplierName;
          this.supplierNo = supplierNo;
          this.cancelState = cancelState;
     }

     /**审核人 **/
     private String checkName;
     /**审核状态 **/
     private int checkState=10;
     /**审核时间 **/
     private String checkTime;
     /**创建开始时间**/
     private String createTime;
     /**结算结束时间 **/
     private String endTime;
     /**删除标志 **/
     private int deleteFlag;
     
     private String preferentPrice;
     
     /** **/
     private String endDate;
     /** 扣点**/
     private String pointPercentage;
     /**结算人 **/
     private String settlementName;
     /**结算状态 **/
     private int settlementState=10;
     /** 结算时间**/
     private String settlementTime; 
     /**结算总金额 **/
     private double settlementTotal;
     /**结算开始日期 **/
     private String startDate;
     /**结算单据号 **/
     private String statementNo;
     /** 供应商名称**/
     private String supplierName;
     /** 供应商编号**/
     private String supplierNo;    
     /**作废状态 **/
     private String cancelState;
     /**结算周期**/
 	 private String accountTime;
 	 /**实际结算金额 **/
 	 private double actTotal;
 	 @Column(name="ACT_TOTAL")
 	 public double getActTotal() {
		return actTotal;
	}
	public void setActTotal(double actTotal) {
		this.actTotal = actTotal;
	}
	@Column(name="PRE_PRICE")
 	public String getPreferentPrice() {
		return preferentPrice;
	}
	public void setPreferentPrice(String preferentPrice) {
		this.preferentPrice = preferentPrice;
	}
	@Column(name="ACOUNT_TIME")
    public String getAccountTime() {
		return accountTime;
	}
	public void setAccountTime(String accountTime) {
		this.accountTime = accountTime;
	}

	private String brand; 
     @Column(name="BRAND")
     public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	// Constructors
     /** default constructor */
     public TblConsignmentSettlement()
     {
     }    
   
	@Column(name = "CANCEL_STATE")
     public String getCancelState()
     {
          return this.cancelState;
     }
     
     @Column(name = "CHECK_NAME")
     public String getCheckName()
     {
          return this.checkName;
     }
     
     @Column(name = "CHECK_STATE")
     public int getCheckState()
     {
          return this.checkState;
     }
     
     @Column(name = "CHECK_TIME")
     public String getCheckTime()
     {
          return this.checkTime;
     }
     
     @Column(name = "CREATE_TIME")
     public String getCreateTime()
     {
          return this.createTime;
     }
     
     @Column(name = "DELETE_FLAG")
     public int getDeleteFlag()
     {
          return this.deleteFlag;
     }
     
     @Column(name = "END_DATE")
     public String getEndDate()
     {
          return this.endDate;
     }
     
     @Column(name = "END_TIME")
     public String getEndTime()
     {
          return this.endTime;
     }
     
    /* @OneToMany(targetEntity = TblConsignmentSDetaill.class, cascade =
     { CascadeType.PERSIST, CascadeType.MERGE }, mappedBy = "consignmentSettlement", fetch = FetchType.EAGER)
     public List<TblConsignmentSDetaill> getList()
     {
          return list;
     }
     */
     @Column(name = "POINT_PERCENTAGE")
     public String getPointPercentage()
     {
          return this.pointPercentage;
     }
     
     // Property accessors
     @Id
     @Basic(optional = false)
     @GeneratedValue(strategy = GenerationType.IDENTITY)
     @Column(name = "settlement_id", nullable = false)
     public String getSettlementId()
     {
          return this.settlementId;
     }
     
     @Column(name = "SETTLEMENT_NAME")
     public String getSettlementName()
     {
          return this.settlementName;
     }
     
     @Column(name = "SETTLEMENT_STATE")
     public int getSettlementState()
     {
          return this.settlementState;
     }
     
     @Column(name = "SETTLEMENT_TIME")
     public String getSettlementTime()
     {
          return this.settlementTime;
     }
     
     @Column(name = "SETTLEMENT_TOTAL")
     public double getSettlementTotal()
     {
          return this.settlementTotal;
     }
     
     @Column(name = "START_DATE")
     public String getStartDate()
     {
          return this.startDate;
     }
     
     @Column(name = "STATEMENT_NO")
     public String getStatementNo()
     {
          return this.statementNo;
     }
     
     @Column(name = "SUPPLIER_NAME")
     public String getSupplierName()
     {
          return this.supplierName;
     }
     
     @Column(name = "SUPPLIER_NO")
     public String getSupplierNo()
     {
          return this.supplierNo;
     }
     
     public void setCancelState(String cancelState)
     {
          this.cancelState = cancelState;
     }
     
     public void setCheckName(String checkName)
     {
          this.checkName = checkName;
     }
     
     public void setCheckState(int checkState)
     {
          this.checkState = checkState;
     }
     
     public void setCheckTime(String checkTime)
     {
          this.checkTime = checkTime;
     }
     
     public void setCreateTime(String createTime)
     {
          this.createTime = createTime;
     }
     
     public void setDeleteFlag(int deleteFlag)
     {
          this.deleteFlag = deleteFlag;
     }
     
     public void setEndDate(String endDate)
     {
          this.endDate = endDate;
     }
     
     public void setEndTime(String endTime)
     {
          this.endTime = endTime;
     }
     
    /* public void setList(List<TblConsignmentSDetaill> list)
     {
          this.list = list;
     }*/
     
     public void setPointPercentage(String pointPercentage)
     {
          this.pointPercentage = pointPercentage;
     }
     
     public void setSettlementId(String settlementId)
     {
          this.settlementId = settlementId;
     }
     
     public void setSettlementName(String settlementName)
     {
          this.settlementName = settlementName;
     }
     
     public void setSettlementState(int settlementState)
     {
          this.settlementState = settlementState;
     }
     
     public void setSettlementTime(String settlementTime)
     {
          this.settlementTime = settlementTime;
     }
     
     public void setSettlementTotal(double settlementTotal)
     {
          this.settlementTotal = settlementTotal;
     }
     
     public void setStartDate(String startDate)
     {
          this.startDate = startDate;
     }
     
     public void setStatementNo(String statementNo)
     {
          this.statementNo = statementNo;
     }
     
     public void setSupplierName(String supplierName)
     {
          this.supplierName = supplierName;
     }
     
     public void setSupplierNo(String supplierNo)
     {
          this.supplierNo = supplierNo;
     }
}